package cn.iocoder.yudao.demo.jpa.entity;

import cn.iocoder.yudao.boot.jpa.entity.BaseEntity;
import lombok.Data;

import javax.persistence.*;

@Entity
@Data
public class User extends BaseEntity {
    private String name;

    private Integer age;

    @ManyToOne(fetch = FetchType.LAZY)
    private Role role;
}
